﻿/*
 *  * User: RDressing@gmail.com
 * Date: 2/19/2011
 * Time: 1:02 PM
 * 
 * 
 */
using System;   
using System.Configuration;

namespace Utility.ServiceQuickChange
{
    
    public sealed class ServiceConfigurationSectionSettings : ConfigurationSection
    {
        private static ConfigurationProperty s_Name;
        private static ConfigurationPropertyCollection s_properties;
        static ServiceConfigurationSectionSettings()
        {
            s_Name = new ConfigurationProperty(
                    "Name"
                    , typeof(string)
                    , null
                    , ConfigurationPropertyOptions.IsRequired 
                   );
            
            s_properties = new ConfigurationPropertyCollection();
            s_properties.Add(s_Name);
            
        }
        [ConfigurationProperty("Name", IsRequired=true)]
        public string Name
        {
            get { return (string)base[s_Name]; }
        }
    
        protected override ConfigurationPropertyCollection Properties
        {
            get { return s_properties; }
        }
    }
}

